<%
//主页
layout("/inc/layout.html",{
title:'智慧洛龙',
keywords:'智慧洛龙',
description:'智慧洛龙',
style:'index.css'
}){
%>
 <!--网站导航菜单-->
 <% include("/inc/nav_menu.html"){} %> 

<section class="container">
<div class="row mt15">
            <div class="panel panel-info">
			<div class="panel-body">
				<div class="row  mt15 text-center sudoku">
 					<div class="col-xs-6 col-sm-2 col-md-2">
					<div class="thumbnail">
						<a href="/list/${cateId!}"
							class="btn btn-primary ${mainId==null?"":"btn-outline"}  btn-lg btn-block ">
							全部 </a>
					</div>
				</div>
					<% if(isNotEmpty(mainList)){ for(main in mainList){ %>
					<div class="col-xs-6 col-sm-2 col-md-2">
					<div class="thumbnail">
						<a href="/list/${main.cateId!}/${main.id!}"
							class="btn btn-primary   ${mainId!=null&&main.id==mainId?"":"btn-outline"}  btn-lg btn-block">
							${main.title!} </a>
						</div>
					</div>
					<%}}else{%>
					<div class="col-sm-12">
						<div class="text">暂时无相关办理事项</div>
					</div>
					<%}%>
				</div>
				
			 <h2>${cateTitle!}事项</h2>
              <hr></hr>
              	<div class="col-sm-12">
              <% if(isNotEmpty(list)){ for(item in list){ %>
					<div class="media">
						<div class="media-body">
						 <h3> 
						<%if(item.matterNature==1){%>
                        <a href="${item.link!"#"}" >${item.title!}</a>
						<%}else{%>
						  <a href="/detail/${item.id!}" >${item.title!}</a>
						<%}%>
						</h3>
						</div>
						
						   
						<div class="media-right hidden-xs">
                            <div class="media-heading">
                            <input id="input-id" type="number" class="satr-rating" value="5" >
                            </div>
                        </div>
						
	                  <%if(item.matterNature==1){%>
							<div class="pull-right">
							    <a href="${item.link!"#"}" class="btn btn-primary btn-outline"><i class="iconfont icon-chakan" aria-hidden="true">查看</i></a>
							</div>
						<%}else{%>
							<div class="media-bottom">
							<div class="pull-right">
							    <a href="/detail/${item.id!}" class="btn btn-primary btn-outline"><i class="iconfont icon-zhinanzhen" aria-hidden="true">办事指南</i></a>
                               <a href="${item.link!}" class="btn btn-primary btn-outline"><i class="iconfont icon-qianzhengbanli" aria-hidden="true">在线办理</i></a>
							 <a href="javaScript:alert('暂时无法评价！')" class="btn btn-primary btn-outline"><i class="iconfont icon-pingjia" aria-hidden="true">评价</i></a>
							</div>
						</div>
						<%}%>
						
					</div>
					<hr>
					<%}}else{%>
					<div class="col-sm-12">
						<div class="text">暂时无相关办理事项</div>
					</div>
					<%}%>
				</div>
			</div>


	<!-- 		<section class="center-block text-center">
				<div class="col-sm-page-12">
					<ul class="pagination">
						<li><a href="" aria-label="First"><span
								aria-hidden="true">首页</span></a></li>
						<li><a href="" aria-label="Previous"><span
								aria-hidden="true">上一页</span></a></li>
						<li><a href="" aria-label="Next"><span aria-hidden="true">下一页</span></a></li>
						<li><a href="" aria-label="Last">尾页</a></li>
					</ul>
				</div>
			</section>  -->

		</div>
      </div>
</section>





<% } %>
<script>
    require(['modules/index'], function (index) {
        index.init();
    });

</script>
</body>
</html>